import React from 'react';
import ReactDOM from 'react-dom';

import routes from './routes';

import { Router, Route, IndexRoute } from 'react-router';
import createHistory from 'history/lib/createHashHistory';

ReactDOM.render(
	<Router history={createHistory({ queryKey: false })}
		onUpdate={() => window.scrollTo(0, 0)}>
		{routes}
	</Router>,
	document.getElementById('app')
);


console.log('React is up and running!');